using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using HISModels.Entities;

namespace HISModels.Mapping
{
	public class RefOthRelativeTypeMap : EntityTypeConfiguration<RefOthRelativeType>
	{
		public RefOthRelativeTypeMap()
		{
			// Primary Key
			this.HasKey(t => t.Id);

			// Properties
			this.Property(t => t.NameValue)
				.HasMaxLength(50);
				
			this.Property(t => t.DescValue)
				.HasMaxLength(50);
				
			// Table & Column Mappings
			this.ToTable("RefOthRelativeTypes");
			this.Property(t => t.Id).HasColumnName("Id");
			this.Property(t => t.NameValue).HasColumnName("NameValue");
			this.Property(t => t.DescValue).HasColumnName("DescValue");
		}
	}
}

